#ifndef __SPI_H
#define __SPI_H
#include "PublicFile.h"

#define SPI_SCL_PORT          GPIOF
#define SPI_SCL_PIN           GPIO_PIN_7

#define SPI_CS_PORT						GPIOF
#define SPI_CS_PIN       			GPIO_PIN_6

#define SPI_MOSI_PORT         GPIOF
#define SPI_MOSI_PIN          GPIO_PIN_9

#define SPI_MISO_PORT					GPIOF
#define SPI_MISO_PIN          GPIO_PIN_8


#define SPI_CS_ENABLE()				gpio_bit_reset(SPI_CS_PORT,SPI_CS_PIN)

#define SPI_CS_DISABLE()			gpio_bit_set(SPI_CS_PORT,SPI_CS_PIN)
void vSpiDrvInit(void);

uint8_t xspiWRByte(uint8_t txData);









#endif

